package com.wyg.epcommonbase.common.exception;

import lombok.Data;

/**
 * @Author: WangYongGan
 * @Date: 2021/10/27 16:46
 * @Description:
 */
@Data
public class MyException extends RuntimeException{
    private String msg;
    private Integer code;

    public MyException(ExceptionEnum exceptionEnum) {
        this.code = exceptionEnum.code;
        this.msg = exceptionEnum.msg;
    }
    public MyException(int code,String msg){
        this.code=code;
        this.msg=msg;
    }
}
